package io.jt808.proto.item;


import io.norland.buffer.AutoBuffer;
import io.norland.proto.IProto;

public class PositionAdditional01Mileage implements IProto {
    private int mileage;

    public byte[] writeToBytes() {
        AutoBuffer buffer = new AutoBuffer();
        buffer.writeInt(mileage);
        return buffer.array();
    }

    public void readFromBuf(AutoBuffer buffer) {
        mileage = buffer.readInt();
    }

    public int getMileage() {
        return this.mileage;
    }

    public void setMileage(int mileage) {
        this.mileage = mileage;
    }
}